package com.ss3;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/10 - 03 - 10 - 21:19
 */
public class Person {
    //属性：
    private int age;
    private String name;
    private double height;

    //提供setter getter方法：


    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    //方法：
    public void eat(){
        System.out.println("可以吃饭。。。");
    }
    public void sleep(){
        System.out.println("可以睡觉。。。");
    }
}
